package com.ruoyi.system.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BillingRuleOperationLogsMapper;
import com.ruoyi.system.domain.BillingRuleOperationLogs;
import com.ruoyi.system.service.IBillingRuleOperationLogsService;

/**
 * 计费规则操作记录Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-19
 */
@Service
public class BillingRuleOperationLogsServiceImpl implements IBillingRuleOperationLogsService
{
    @Autowired
    private BillingRuleOperationLogsMapper billingRuleOperationLogsMapper;

    /**
     * 通过id查询计费规则操作记录
     *
     * @param id 计费规则操作记录主键
     * @return 计费规则操作记录
     */
    @Override
    public BillingRuleOperationLogs selectBillingRuleOperationLogsById(Long id)
    {
        return billingRuleOperationLogsMapper.selectBillingRuleOperationLogsById(id);
    }

    /**
     * 查询计费规则操作记录列表
     *
     * @param billingRuleCode,billingType,operationType,operationStartTime,operationEndTime,operator 计费规则操作记录
     *
     * @return 计费规则操作记录
     */
    @Override
    public List<BillingRuleOperationLogs> selectBillingRuleOperationLogsListByConditions(String billingRuleCode, String billingType, String operationType,
                                                                                         Date operationStartTime, Date operationEndTime, String operator)
    {
        return billingRuleOperationLogsMapper.selectBillingRuleOperationLogsListByConditions(billingRuleCode,billingType,operationType,operationStartTime,operationEndTime,operator);
    }

    /**
     * 新增计费规则操作记录
     *
     * @param billingRuleOperationLogs 计费规则操作记录
     * @return 结果
     */
    @Override
    public int insertBillingRuleOperationLogs(BillingRuleOperationLogs billingRuleOperationLogs)
    {
        return billingRuleOperationLogsMapper.insertBillingRuleOperationLogs(billingRuleOperationLogs);
    }

    /**
     * 修改计费规则操作记录
     *
     * @param billingRuleOperationLogs 计费规则操作记录
     * @return 结果
     */
    @Override
    public int updateBillingRuleOperationLogs(BillingRuleOperationLogs billingRuleOperationLogs)
    {
        return billingRuleOperationLogsMapper.updateBillingRuleOperationLogs(billingRuleOperationLogs);
    }

    /**
     * 通过id批量删除计费规则操作记录信息
     *
     * @param ids 需要删除的计费规则操作记录主键
     * @return 结果
     */
    @Override
    public int deleteBillingRuleOperationLogsByIds(Long[] ids)
    {
        return billingRuleOperationLogsMapper.deleteBillingRuleOperationLogsByIds(ids);
    }

    /**
     * 通过id删除计费规则操作记录信息
     *
     * @param id 计费规则操作记录主键
     * @return 结果
     */
    @Override
    public int deleteBillingRuleOperationLogsById(Long id)
    {
        return billingRuleOperationLogsMapper.deleteBillingRuleOperationLogsById(id);
    }
}
